package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PickupMapper;
import com.ruoyi.system.domain.Pickup;
import com.ruoyi.system.service.IPickupService;

/**
 * 漂流瓶捞取记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PickupServiceImpl implements IPickupService 
{
    @Autowired
    private PickupMapper pickupMapper;

    /**
     * 查询漂流瓶捞取记录
     * 
     * @param id 漂流瓶捞取记录主键
     * @return 漂流瓶捞取记录
     */
    @Override
    public Pickup selectPickupById(Long id)
    {
        return pickupMapper.selectPickupById(id);
    }

    /**
     * 查询漂流瓶捞取记录列表
     * 
     * @param pickup 漂流瓶捞取记录
     * @return 漂流瓶捞取记录
     */
    @Override
    public List<Pickup> selectPickupList(Pickup pickup)
    {
        return pickupMapper.selectPickupList(pickup);
    }

    /**
     * 新增漂流瓶捞取记录
     * 
     * @param pickup 漂流瓶捞取记录
     * @return 结果
     */
    @Override
    public int insertPickup(Pickup pickup)
    {
        return pickupMapper.insertPickup(pickup);
    }

    /**
     * 修改漂流瓶捞取记录
     * 
     * @param pickup 漂流瓶捞取记录
     * @return 结果
     */
    @Override
    public int updatePickup(Pickup pickup)
    {
        return pickupMapper.updatePickup(pickup);
    }

    /**
     * 批量删除漂流瓶捞取记录
     * 
     * @param ids 需要删除的漂流瓶捞取记录主键
     * @return 结果
     */
    @Override
    public int deletePickupByIds(Long[] ids)
    {
        return pickupMapper.deletePickupByIds(ids);
    }

    /**
     * 删除漂流瓶捞取记录信息
     * 
     * @param id 漂流瓶捞取记录主键
     * @return 结果
     */
    @Override
    public int deletePickupById(Long id)
    {
        return pickupMapper.deletePickupById(id);
    }
}
